﻿@model System.Data.DataTable
@if (Model != null)
{
    for (int i = 0; i < Model.Rows.Count; i++)
    {
        if (i == 0)
        {
    <div class="lenhe_contact">
        <div class="lienhe_contact_tab">
            @*@i*@
        </div>
        <div class="lenhe_contact_title">
            @Model.Rows[i]["Name"].ToString()
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                A</label>
            <label>
                @Model.Rows[i]["Address"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                T</label>
            <label>
                @Model.Rows[i]["Phone"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                F</label>
            <label>
                @Model.Rows[i]["Fax"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                E</label>
            <label>
                @Model.Rows[i]["Email"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                W</label>
            <label>
                @Model.Rows[i]["Website"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_map_default">
            @Html.Raw(Model.Rows[i]["Url"].ToString())
        </div>
        <div class="lienhe_contact_bot">
            @Model.Rows[i]["Description"].ToString()
        </div>
    </div>
    <div class="lenhe_contact_feddback" id="load_feedback">
        @{ Html.RenderAction("FormLienHe", "LienHe"); }
    </div>
        }
        else
        {
    <div class="lenhe_contact">
        <div class="lienhe_contact_tab">
            @i
        </div>
        <div class="lenhe_contact_title">
            @Model.Rows[i]["Name"].ToString()
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                A</label>
            <label>
                @Model.Rows[i]["Address"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                T</label>
            <label>
                @Model.Rows[i]["Phone"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                F</label>
            <label>
                @Model.Rows[i]["Fax"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                E</label>
            <label>
                @Model.Rows[i]["Email"].ToString()
            </label>
        </div>
        <div class="lienhe_contact_address">
            <label style="color: #D43C2E; font-weight: bold">
                W</label>
            <label>
                @Model.Rows[i]["Website"].ToString()
            </label>
        </div>
        <div class="lienhe_showmap">
            <div class="lienhe_contact_nutview">
                @CMSMVC4.MultiResource.Resource.ViewMap
            </div>
            <div class="lienhe_contact_map" style="display: none">
                @Html.Raw(Model.Rows[i]["Url"].ToString())

            </div>
        </div>
        <div class="lienhe_contact_bot">
            @Model.Rows[i]["description"].ToString()
        </div>
    </div>
        }
    }
}
